<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 数组长度 -->
    
</body>
</html>
<script>

    var arr = ['马云','订单','各个','额的','宽度','诶额','的地方','大幅度','各个',]
    // for(var i =0; i<9; i++){
    //     console.log(i);
    // }

    // for(var i =0; i<arr.length; i++){
    //     console.log(i+'0');
    // }
// 之和
    var arr2 = [1,2,3,4,5,6]
    var sum =0;
    var agree =0;
    for(var i =0; i<arr2.length; i++){
        sum =sum + arr2[i]
    
    }
    console.log(sum);
    // 平均值
    agree = sum / arr2.length
    console.log(agree);


    
</script>